

#include"Queue.h"


void QueueTest()
{
	Queue  st;
	QueueInit(&st);
	QueuePush(&st, 1);
	QueuePush(&st, 2);
	QueuePush(&st, 3);
	QueuePush(&st, 4);
	QueuePush(&st, 5);
	QueuePop(&st);
	QueuePop(&st);
	QueuePop(&st);
	QueuePop(&st);
	QueuePop(&st);
	
	/*while (!QueueEmpty(&st))
	{
		QLDataType front = QueueFront(&st);
		printf("%d ", front);
		QueuePop(&st);
	}*/
	
	//int tail= QueueBack(&st);
	int size=QueueSize(&st);
	printf("%d\n", size);
	//printf("front=%d,tail=%d,size=%d", front, tail, size);
	
	
	QueueDestroy(&st);
	
	
		
}
void QueueTest1()
{
	MyStack* st= myStackCreate();
	myStackPush(st, 1);
	myStackPush(st, 2);
	myStackPush(st, 3);
	myStackPush(st, 4);
	int ret1= myStackPop(st);
	int ret2 = myStackPop(st);
	int ret3 = myStackPop(st);
	int ret4 = myStackPop(st);
	printf("%d   \n", ret4);
}
int main()
{

	QueueTest1();
	return 0;
}